<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="4.3.4">Jekyll</generator><link href="http://egonw.github.io/blog/feed/by_tag/virtuoso.xml" rel="self" type="application/atom+xml" /><link href="http://egonw.github.io/blog/" rel="alternate" type="text/html" /><updated>2026-04-10T08:13:42+00:00</updated><id>http://egonw.github.io/blog/feed/by_tag/virtuoso.xml</id><title type="html">chem-bla-ics</title><subtitle>Chemblaics (pronounced chem-bla-ics) is the science that uses open science and computers to solve problems in chemistry, biochemistry and related fields.</subtitle><author><name>Egon Willighagen</name></author><entry><title type="html">Linking two Virtuoso instances to one Apache server</title><link href="http://egonw.github.io/blog/2009/11/20/linking-two-virtuoso-instances-to-one.html" rel="alternate" type="text/html" title="Linking two Virtuoso instances to one Apache server" /><published>2009-11-20T00:00:00+00:00</published><updated>2009-11-20T00:00:00+00:00</updated><id>http://egonw.github.io/blog/2009/11/20/linking-two-virtuoso-instances-to-one</id><content type="html" xml:base="http://egonw.github.io/blog/2009/11/20/linking-two-virtuoso-instances-to-one.html"><![CDATA[<p><a href="http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/">Virtuoso</a> comes with its own web front end, but I did not want to make that public.
Additionally, I actually have two instances running, one for the <a href="http://www.gnu.org/copyleft/fdl.html">GNU FDL</a>
licensed <a href="http://chem-bla-ics.blogspot.com/2009/09/nmrshiftdb-enters-rdfopenmoleculesnet-2.html">NMRShiftDB</a>
data, and one for the CC0 <a href="http://chem-bla-ics.blogspot.com/2009/11/chempedia-rdf-1-sparql-end-point.html">ChemPedia</a> and
<a href="http://chem-bla-ics.blogspot.com/2009/11/open-notebook-science-solubility-sparql.html">Solubility</a> data sets.</p>

<p>So, I used <a href="http://httpd.apache.org/docs/2.0/mod/mod_proxy.html">Apache’s proxy module</a> linking to two Virtuoso instances.
These two are set up by just duplicating a data based folder and to have it use two <em>virtuoso.ini</em> config files. Modify one
of two config files to have them run on a different port in the Parameters section, for example 1198 and 1199:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>[Parameters]
ServerPort                      = 1199
</code></pre></div></div>

<p>And assign a different server ports in the HTTPServer section, such as 2290 and 2291:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>[HTTPServer]
ServerPort                      = 2291
</code></pre></div></div>

<p>Then modify the <em>/etc/apache2/mods-enabled/proxy.conf</em> (or whatever equivalent on your system) to have two sections creating two URL rewrites proxying the request to the virtuoso server:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>&lt;Proxy /nmrshiftdb/sparql&gt;
  RewriteEngine On
  Allow from all
  ProxyPass        http://localhost:2290/sparql
  ProxyPassReverse http://localhost:2290/sparql
&lt;/Proxy&gt;

&lt;Proxy /cc0/sparql&gt;
  RewriteEngine On
  Allow from all
  ProxyPass        http://localhost:2291/sparql
  ProxyPassReverse http://localhost:2291/sparql
&lt;/Proxy&gt;
</code></pre></div></div>]]></content><author><name>Egon Willighagen</name></author><category term="virtuoso" /><category term="apache" /><summary type="html"><![CDATA[Virtuoso comes with its own web front end, but I did not want to make that public. Additionally, I actually have two instances running, one for the GNU FDL licensed NMRShiftDB data, and one for the CC0 ChemPedia and Solubility data sets.]]></summary></entry></feed>